package com.xian.cloud.api;

import com.xian.cloud.entity.User;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: xlr
 * @Date: Created in 10:14 PM 2019/8/23
 */
@RequestMapping("api")
public interface UserDubboApi {

    @RequestMapping(name = "info",method = RequestMethod.GET)
    User info(@RequestParam("name") String name);

    @PostMapping("update")
    String update(@RequestBody User user);
}
